<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link rel="stylesheet" type = "text/css" href = "css/main.css">
<script type = "text/javascript" src = "js/jquery-1.10.2.min.js"> </script>
</head>
<body>
	<table id="productList class = "bordered">
		<thead>
			<tr>
				<th>Name</th>
				<th>Description</th>
				<th>Price</th>
				<th>Category</th>
				<th>Action</th>

			</tr>
		</thead>
		<tbody>
			<c:forEach items="${products}" var="product">
			<tr id = "product${product.id)}">
			<td>${product.name}</td>
			<td>${product.description}</td>
			<td><fmt:formatNumber maxFractionDigits = "2" value = "${product.price}"/></td>
			</tr>	
			</c:forEach>
		</tbody>
	</table>
</body>
</html>